'use strict';

module.exports = function collectSameElements(collectionA, collectionB) {
  let arr = new Array();
for(let i of collectionA)

for(let j of collectionB){
if(i==j)
arr.push(i);}
return arr;






  
}
